<template>
  <div class="bottom-charts">

    <div class="bc-chart-item" style="width: 50%">
      <div class="bcci-header">投产量及生产负载</div>
      <Double-Line style="position: relative;top: -45px" />
    </div>

    <dv-decoration-2 class="decoration-2" :reverse="true" style="width:5px;" />

    <div class="bc-chart-item">
      <div class="bcci-header">投产量情况</div>
      <dv-active-ring-chart :config="config3" />
      <Label-Tag :config="labelConfig" />
    </div>

    <dv-decoration-2 class="decoration-3" :reverse="true" style="width:5px;" />

    <div class="bc-chart-item">
      <div class="bcci-header">负载情况</div>
      <dv-active-ring-chart :config="config4" />
      <Label-Tag :config="labelConfig" />
    </div>

  </div>
</template>

<script>
import LabelTag from './LabelTag'
import DoubleLine from './DoubleLine'


export default {
  name: 'BottomCharts2',
  components: {
    LabelTag,
    DoubleLine
  },
  data () {
    return {

      config3: {
        data: [
          {
            name: '400单元',
            value: 452
          },
          {
            name: '1400单元',
            value: 512
          },
          {
            name: 'PVC',
            value: 333
          },
          {
            name: '三元催化',
            value: 255
          }
        ],
        color: ['#00baff', '#3de7c9', '#fff', '#ffc530', '#469f4b'],
        radius: '65%',
        activeRadius: '70%'
      },

      config4: {
        data: [
          {
            name: '400单元',
            value: 156
          },
          {
            name: '1400单元',
            value: 415
          },
          {
            name: 'PVC',
            value: 90
          },
          {
            name: '三元催化',
            value: 210
          }
        ],
        color: ['#00baff', '#3de7c9', '#fff', '#ffc530', '#469f4b'],
        radius: '65%',
        activeRadius: '70%'
      },

      labelConfig: {
        data: ['400单元', '1400单元', 'PVC', '三元催化']
      }
    }
  }
}
</script>

<style lang="less">
.bottom-charts {
  width: 100%;
  height: 100%;
  display: flex;
  position: relative;

  .bc-chart-item {
    width: 25%;
    height: 100%;
    padding-top: 20px;
    box-sizing: border-box;
  }

  .bcci-header {
    height: 50px;
    text-align: center;
    line-height: 50px;
    font-size: 20px;
  }

  .dv-active-ring-chart {
    height: calc(~"100% - 80px");
  }

  .label-tag {
    height: 30px;
  }

  .active-ring-name {
    font-size: 18px !important;
  }

  .decoration-1, .decoration-2, .decoration-3 {

    left: 0%;
  }
}
</style>
